package com.ziyueyuwen.xiniao.bean.vo;

import com.ziyueyuwen.xiniao.bean.ZyClassInfo;
import com.ziyueyuwen.xiniao.bean.ZyClassLessonInfo;
import com.ziyueyuwen.xiniao.bean.ZyUser;

import java.util.List;
import java.util.Map;

/**
 * @author wancheng  on 2018/12/17.
 */
public class ZyClassVO extends ZyClassInfo{

    private String teacherAccount;

    private String teacherName;

    private String masterAccount;

    private String masterName;

    private Integer courseId;

    private String courseName;

    private Integer subjectId;

    private Integer lessonCount;

    private ZyClassUserVO teacher;

    private ZyClassUserVO master;

    private List<ZyClassUserVO> students;

    private String studentNames;

    private Map<String,List<ZyClassLessonInfo>> lessons;

    private Map<String,Integer> lessonsCount;

    private ZyCourseVO course;

    private List<ZyLessonVO> lessonArray;

    public ZyClassVO() {
    }
    public ZyClassVO(ZyClassInfo zyClassInfo) {
        this.setId(zyClassInfo.getId());
        this.setClassName(zyClassInfo.getClassName());
        this.setCourseId(zyClassInfo.getCourseId());
        this.setStudentNum(zyClassInfo.getStudentNum());
        this.setStatus(zyClassInfo.getStatus());
        this.setBeginTime(zyClassInfo.getBeginTime());
        this.setEndTime(zyClassInfo.getEndTime());
        this.setIfDelete(zyClassInfo.getIfDelete());
    }
    public String getTeacherAccount() {
        return teacherAccount;
    }

    public void setTeacherAccount(String teacherAccount) {
        this.teacherAccount = teacherAccount;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public String getMasterAccount() {
        return masterAccount;
    }

    public void setMasterAccount(String masterAccount) {
        this.masterAccount = masterAccount;
    }

    public String getMasterName() {
        return masterName;
    }

    public void setMasterName(String masterName) {
        this.masterName = masterName;
    }

    @Override
    public Integer getCourseId() {
        return courseId;
    }

    @Override
    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public ZyClassUserVO getTeacher() {
        return teacher;
    }

    public void setTeacher(ZyClassUserVO teacher) {
        this.teacher = teacher;
    }

    public ZyClassUserVO getMaster() {
        return master;
    }

    public void setMaster(ZyClassUserVO master) {
        this.master = master;
    }

    public List<ZyClassUserVO> getStudents() {
        return students;
    }

    public void setStudents(List<ZyClassUserVO> students) {
        this.students = students;
    }

    public String getStudentNames() {
        return studentNames;
    }

    public void setStudentNames(String studentNames) {
        this.studentNames = studentNames;
    }

    public Map<String, List<ZyClassLessonInfo>> getLessons() {
        return lessons;
    }

    public void setLessons(Map<String, List<ZyClassLessonInfo>> lessons) {
        this.lessons = lessons;
    }

    public Integer getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(Integer subjectId) {
        this.subjectId = subjectId;
    }

    public Map<String, Integer> getLessonsCount() {
        return lessonsCount;
    }

    public void setLessonsCount(Map<String, Integer> lessonsCount) {
        this.lessonsCount = lessonsCount;
    }

    public ZyCourseVO getCourse() {
        return course;
    }

    public void setCourse(ZyCourseVO course) {
        this.course = course;
    }

    public List<ZyLessonVO> getLessonArray() {
        return lessonArray;
    }

    public void setLessonArray(List<ZyLessonVO> lessonArray) {
        this.lessonArray = lessonArray;
    }

    public Integer getLessonCount() {
        return lessonCount;
    }

    public void setLessonCount(Integer lessonCount) {
        this.lessonCount = lessonCount;
    }

    @Override
    public String toString() {
        return "ZyClassVO{" +
                "teacherAccount='" + teacherAccount + '\'' +
                ", teacherName='" + teacherName + '\'' +
                ", masterAccount='" + masterAccount + '\'' +
                ", masterName='" + masterName + '\'' +
                ", courseId=" + courseId +
                ", courseName='" + courseName + '\'' +
                ", subjectId=" + subjectId +
                ", lessonCount=" + lessonCount +
                ", teacher=" + teacher +
                ", master=" + master +
                ", students=" + students +
                ", studentNames='" + studentNames + '\'' +
                ", lessons=" + lessons +
                ", lessonsCount=" + lessonsCount +
                ", course=" + course +
                ", lessonArray=" + lessonArray +
                '}';
    }
}
